layer = layui.layer
var userinfo = new Vue({
    el: "#app",
    data: {
        image: $.cookie('image'),
        name: $.cookie('name'),
        email: $.cookie('email'),
        qq: $.cookie('qq'),
    },
    methods: {
        reset: function() {
            that = this
            axios.get("http://127.0.0.1:8000/randomImage/?reset=1").then(
                function(response) {
                    var resp = response.data
                    url = resp.url
                    that.image = url
                },
                function(err) {
                    console.log(err)
                }
            )
        },
    }
})